package cn.kgc.service.impl;

import cn.kgc.entity.Dept;
import cn.kgc.mapper.DeptMapper;
import cn.kgc.service.DeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/3/30
 * @Description:
 */
@Service
public class DeptServiceImpl extends ServiceImpl implements DeptService {

    @Autowired(required = false)
    private DeptMapper deptMapper;

    public List<Dept> list(){
        return  deptMapper.selectList(null);
    }
}
